/*
** my.h for  in /home/gueux_g/projet/code_source/include
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Thu Oct 11 20:14:08 2012 gregory gueux
** Last update Sat Jun 15 11:34:14 2013 julien genoud
*/

#ifndef		__MY_H__
#define		__MY_H__


#include	<stdlib.h>
#include	<unistd.h>


int	*xmalloc(size_t n);
char	*convert_base(char *nbr, char *base_from, char *base_to);
int    	my_factorielle_it(int nb);
int    	my_factorielle_rec(int nb);
int	my_calc(int *nb, int i);
int	my_getnbr_base(char *str, char *base);
int	init(char *base, int *nbr, int *j, int *i);
int	my_getnbr(char *str);
int    	my_isneg(int n);
int    	my_power_it(int nb, int power);
int    	my_power_rec(int nb, int power);
int	my_calc2(int *nb, int power, int count, int res);
void	my_putchar(char c);
void    my_put_nbr_base(int nb, char *base);
void    my_put_nbr(int nb);
int	my_putstr(char *str);
char	*my_revstr(char *str);
int	my_show_wordtab(char **tab);
void	my_sort_int_tab(int *tab, int size);
char	*my_strcapitalize(char *str);
char	*my_strcat(char *dest, char *src);
int	my_strcmp(char *s1, char *s2);
char	*my_strcpy(char *dest, char *src);
char	*my_strdup(char *src);
int	my_str_isalpha(char *str);
int	my_str_islower(char *str);
int	my_str_isnum(char *str);
int	my_str_isupper(char *str);
int	my_strlcat(char *dest, char *src, int size);
int    	my_strlen(char *str);
char	*my_strlowcase(char *str);
char	*my_strncat(char *dest, char *src, int nb);
int	my_strncmp(char *s1, char *s2, int n);
char	*my_strncpy(char *dest, char *src, int n);
char	*my_strstr(char *str, char *to_find);
char	**my_str_to_wordtab(char *str);
int	my_countchar(char *str);
int	my_countword(char *str);
char	*my_strupcase(char *str);
int     my_swap(int *a, int *b);
char	*sum_params(int argc, char **argv);
int	my_printf(char *str, ...);


#endif
